<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../vue.js"></script>
</head>
<body>
<div id="app">
    <count heading="like" color="green"></count>
    <count heading="dislike" color="red"></count>
</div>
<template id="template">
    <div class="tep">
        <h1>{{heading}}</h1>
        <button @click="count++">Submit {{count}}</button>
    </div>
</template>
<script type="text/javascript">
    Vue.component('count',{
        template:'#template',
        props:['heading','color'],
        data:function () {
            return {
                count:0,
            }
        }
    })
    new Vue({
        el:'#app',
    })
</script>
</body>
</html>